package com.mdd.admin.validate.student;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 学生参数
 * @author LikeAdmin
 */
@Data
@ApiModel("学生更新参数")
public class StudentUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Integer id;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "姓名")
    private String name;

    @NotNull(message = "age参数缺失")
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @NotNull(message = "sex参数缺失")
    @ApiModelProperty(value = "性别: [0=男, 1=女]")
    private Integer sex;

}
